package com.kin.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.kin.dao.GroupAllMapper;
import com.kin.dao.GroupMapper;
import com.kin.pojo.Group;
import com.kin.pojo.GroupAll;
import com.kin.service.IGroupService;

@Service("groupService")
public class GroupService implements IGroupService{
	
	@Resource
	private GroupMapper groupDao;//角色Dao
	
	@Resource
	private GroupAllMapper groupAllDao;//获取所有信息

	@Override
	public Group getGroupById(int groupid) {
		// TODO Auto-generated method stub
		return groupDao.selectByPrimaryKey(groupid);
	}

	@Override
	public GroupAll getAllGroupInfo() {
		// TODO Auto-generated method stub
		return groupAllDao.selectAllInfo();
	}
	
	

}
